package com.zpkj.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.zpkj.service.IComputerFeignService;

/**
 * Created on 2018-5-28
 */
@RestController
public class ComputerFeignController {

    @Autowired
    private IComputerFeignService computeClient;

    @RequestMapping(value = "/feignAdd",method = RequestMethod.GET)
    public String feignAdd(@RequestParam(name="a") Integer a, @RequestParam(name="b") Integer b){
        return computeClient.add(a,b);
    }
}
